<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib prefix="spring" 	uri="http://www.springframework.org/tags" %>
<%@ taglib prefix="tiles" 	uri="http://tiles.apache.org/tags-tiles" %>
<%@ taglib prefix="c"		uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html; charset=utf-8" %>
<%@ page language="java" pageEncoding="utf-8"%>

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	
	<!--[if IE]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
	<title><spring:message code="label.title"/></title>
	<link rel="stylesheet" href="resources/css/style.css" type="text/css" />
	
</head>
<script type="text/javascript">
$(document).ready(function(){
// 	var loginError = "${error}";
// 	if (  loginError!= "" && loginError!= null){
// 		 $.messager.show({
//              title: 'Login failed',
//              msg: "Your login attempt was not successful, try again. \n Caused : " + '${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}',
//              timeout:5000,
//              showType:'show',
// 	         	style:{
// 	         		right:'',
// 	         		top:document.body.scrollTop+document.documentElement.scrollTop,
// 	         		bottom:''
// 	         	}
//          });
// 	}
  
    $( "#bt" )
      .button()
      .click(function( event ) {
        event.preventDefault();
        console.log("bt was pressed");
      });
	  	
});
</script>

<body>
	<CENTER>
		<br>
			Magazinul Financiar 
		<br>
		<hr>
		<br>
			<div id="dialog-form" class="container auth-form">		
			<h2 style="color:#B40B3D">Log In</h2>
			<img style="float: right" src="resources/images/logotip.png" alt="logo">
			<form name='f' action="<c:url value='j_spring_security_check' />" method='POST'>
		    <br>
				<table>
					<tr>
						<td><font style="font-size:18px">Utilizator :</font></td>
					</tr>
					<tr>
						<td><input type='text' name='j_username' value='' class="text ui-widget-content ui-corner-all"></td>
					</tr>
					<tr>
						<td><font style="font-size:18px">Parola :</font></td>
					</tr>
					<tr>	
						<td><input type='password' name='j_password' 	class="text ui-widget-content ui-corner-all"/></td>
					</tr>						
					<tr>
						<td>
							<p class="remember-me">
							<label><input type="checkbox" id="j_remember_me" name="j_remember_me" value="Y">&nbsp;Remember me</label>
							</p>
						</td>
						
					</tr>
					<tr>
						<td><input name="submit" 	type="submit"	value="Autorizarea"	class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only" />
						<input name="reset" 	type="reset"	value="Reset"	class="ui-button ui-widget ui-state-default ui-corner-all ui-button-text-only"/></td>
					</tr>
				</table>
		 
			</form>	
			</div>
	</CENTER>

</body>
</html>
